package com.ccb.lms.service;

import java.sql.SQLException;
import java.util.List;

import com.ccb.lms.model.LibraryAdmin;
import com.ccb.lms.model.Reader;
import com.ccb.lms.util.BasePage;

public interface ILibraryAdminService {
	/**
	 * 验证登陆
	 * @param libraryAdmin
	 * @return
	 * @throws SQLException
	 */
	public boolean isLogin(LibraryAdmin libraryAdmin) throws SQLException;   
	
	/**
	 * 增加一条记录
	 * @param libraryAdmin
	 * @return
	 * @throws SQLException
	 */
	public boolean insertLibraryAdmin(LibraryAdmin libraryAdmin) throws SQLException;   
	
	/**
	 * 删除一条记录
	 * @param libraryAdminNO
	 * @return
	 * @throws SQLException
	 */
	public boolean deleteLibraryAdmin(Integer libraryAdminNO) throws SQLException;
	
	/**
	 * 更新一条记录
	 * @param libraryAdmin
	 * @return
	 * @throws SQLException
	 */
	public boolean updateLibraryAdmin(LibraryAdmin libraryAdmin) throws SQLException;   
	
	/**
	 * 查询所有libraryAdmin记录
	 * @return
	 * @throws SQLException
	 */
	public List<LibraryAdmin> getAllLibraryAdmins() throws SQLException; 
	
	/**
	 * 根据libraryAdminID查询libraryAdmin
	 * @param libraryAdminID
	 * @return
	 * @throws SQLException
	 */
	public LibraryAdmin getLibraryAdminByID(String libraryAdminID) throws SQLException;
	
	/**获取记录条目数
	 * 
	 * @return
	 * @throws SQLException
	 */
	public int getLibraryAdminCount() throws SQLException;
	
	/**
	 * 获得页面信息
	 * @param currentPage
	 * @param showRecordNum
	 * @return
	 * @throws SQLException
	 */
	public BasePage getBasePage(int currentPage,int showRecordNum) throws SQLException;
	
	/**
	 * 根据页面确定要显示的记录
	 * @param basePage
	 * @return
	 * @throws SQLException
	 */
	public List<LibraryAdmin> getLibraryAdminByPage(BasePage basePage) throws SQLException;
}
